package com.simon.app.utils;

import android.content.SharedPreferences;

import androidx.appcompat.app.AppCompatActivity;

import com.simon.app.consts.GV;

public class StoreUtil {

    public static SharedPreferences.Editor getEditor(AppCompatActivity ctx, String storeKey){
        SharedPreferences sharedPreferences = ctx.getSharedPreferences(storeKey, ctx.MODE_PRIVATE);
        return sharedPreferences.edit();
    }

    public static Boolean getBoolean(AppCompatActivity ctx, String storeKey){
        SharedPreferences sharedPreferences = ctx.getSharedPreferences(storeKey, ctx.MODE_PRIVATE);
        return sharedPreferences.getBoolean(storeKey,false);
    }

}
